package edu.fiu.cis.nursing.shared;

import java.io.Serializable;

@SuppressWarnings("serial")
public class DataEnvelope<T> implements Serializable {

	public enum DataType {
		BOOLEAN, RATING, STRING
	}

	private String display;
	private String attribute;
	private String description;
	private T t;
	private DataType type;

	public DataEnvelope() {
	}

	public DataEnvelope(String display, String attribute, T t, DataType type) {
		super();
		this.display = display;
		this.attribute = attribute;
		this.t = t;
		this.type = type;
	}

	public DataType getType() {
		return type;
	}

	public void setType(DataType type) {
		throw new RuntimeException();
	}

	public String getDisplay() {
		return display;
	}

	public void setDisplay(String display) {
		this.display = display;
	}

	public String getAttribute() {
		return attribute;
	}

	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public T get() {
		return t;
	}

	public void set(T t) {
		this.t = t;
	}

}
